//设置变量
@color:#b7d4a9;
//清除默认样式
body{
  font:bold 20px "Courier";
}
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}
//主窗口样式
#main{
  width: 360px;
  height: 420px;
  background-color: @color;
  margin: 100px auto;
  border: 10px solid #000;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content:space-around;
  align-items: center;
  #stage{
    width: 304px;
    height: 304px;
    border: 2px solid #000000;
    position: relative;
    #snake{
      &>div {
        width: 10px;
        height: 10px;
        background-color: #000000;
        border: 1px solid @color;
        position: absolute;
      }
    }
    #food{
      width: 10px;
      height: 10px;
      border: 1px solid @color;
      position: absolute;
      left: 40px;
      top: 100px;
      display:flex ;
      flex-wrap: wrap;
      &>div{
        width: 4px;
        height: 4px;
        transform: rotate(45deg);
        background-color: #000000;
      }
    }
  }
  #score-panel{
    width: 300px;
    display: flex;
    justify-content: space-between;
  }

}


